﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Web.Framework
{
    public class ModelCheckException : Exception
    {
        public string Key
        {
            get { return key; }
        }
        public ViewMessage.ViewMessageType ViewMessageType
        {
            get;
            set;
        }
        private string key
        {
            get;
            set;
        }
        public ModelCheckException(string key, string message)
            : base(message)
        {
            this.key = key;
            this.ViewMessageType = ViewMessage.ViewMessageType.Error;
        }

        public ModelCheckException(string key, string message, ViewMessage.ViewMessageType VMtype)
            : base(message)
        {
            this.key = key;
            this.ViewMessageType = VMtype;
        }
    }
}
